package initialize

import (
	"github.com/gin-gonic/gin"
	"marketing-server/router"
)

func holder(routers ...*gin.RouterGroup) {
	_ = routers
	_ = router.RouterGroupApp
}
func initBizRouter(routers ...*gin.RouterGroup) {
	privateGroup := routers[0]
	publicGroup := routers[1]
	holder(publicGroup, privateGroup)

	{
		xiaohongshuRouter := router.RouterGroupApp.Marketing.XhsRouterGroup
		xiaohongshuRouter.InitXhsTicketRouter(privateGroup, publicGroup)
		xiaohongshuRouter.InitXhsAccessTokenRouter(privateGroup, publicGroup) // 占位方法，保证文件可以正确加载，避免go空变量检测报错，请勿删除。
		xiaohongshuRouter.InitXhsPreAuthCodeRouter(privateGroup, publicGroup)
		//手动添加路由
		xiaohongshuRouter.InitXhsAuthRouter(privateGroup, publicGroup)

		//xiaohongshuRouter := router.RouterGroupApp.Xiaohongshu
		//xiaohongshuRouter.InitXhsTicketRouter(privateGroup, publicGroup)
		//xiaohongshuRouter.InitXhsAccessTokenRouter(privateGroup, publicGroup) // 占位方法，保证文件可以正确加载，避免go空变量检测报错，请勿删除。
		//xiaohongshuRouter.InitXhsPreAuthCodeRouter(privateGroup, publicGroup)
	}
}
